package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbSysEventValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;

/**
 * TbSysEvent is a Codegen vo type
 */
@Label("系统事件表")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbSysEvent")
public class TbSysEvent extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13155231319761L;    
    @Label("是否查阅")
    private Integer alreadyRead;

    @Label("备注")
    @Size(max=256)
    private String comments;

    @Label("结束时间")
    private DateTime endTime;

    @Label("删除标记")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("开始时间")
    private DateTime startTime;

    public Integer getAlreadyRead() {
        return alreadyRead;
    }

    public void setAlreadyRead(Integer alreadyRead) {
        this.alreadyRead = alreadyRead;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public DateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(DateTime endTime) {
        this.endTime = endTime;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public DateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(DateTime startTime) {
        this.startTime = startTime;
    }

    public String toString() {
         return String.format("TbSysEvent { alreadyRead : %s,comments : %s,endTime : %s,flag : %s,id : %s,startTime : %s }",alreadyRead,comments,endTime,flag,id,startTime);
    }

}

